<?php

namespace app\library\websocket\action;

use app\library\websocket\logic\Messages;
use app\library\websocket\logic\Sessions;

class Read extends MessageCenter
{

	public function handle()
	{
		$messageIdList = Sessions::getMsgIdList($this->message->chat_id);
		foreach ($messageIdList as $msgId) {
			Messages::read($msgId, $this->message->identity);
		}
	}
}
